package com.sanyang.lawyer.service.record;


import com.sanyang.lawyer.entity.Record_borrow;
import com.sanyang.lawyer.mapper.record.Record_borrowMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class RecordBorrowService {

    @Autowired
    private Record_borrowMapper borrows;


    public List<Record_borrow> listall(){
        return borrows.listall();
    }


    public Record_borrow getbyid(int id){
        return borrows.getbyid(id);
    }

    public int listcount(Map<String,Object> map){
        return this.borrows.listcount(map);
    }

    public void insert(Record_borrow borrow){
        this.borrows.insert(borrow);
    }

    public void update(Record_borrow borrow){
        this.borrows.update(borrow);
    }

    public List<Record_borrow> furry(Map<String,Object> map){
        return borrows.furry(map);
    }
    public void updatestate(int id){
        this.borrows.updatestate(id);
    }
    public void deleteborrow(int id){
        this.borrows.deleteborrow(id);
    }


}
